package com.jdz.gxq.info.admin.employmentneed.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.employmentneed.bo.Employmentneed;

public interface EmploymentneedService {

	/**
	 * Employmentneed检索分页用，查询记录条数
	 * 
	 * @return
	 */
	public int getEmploymentneedsCount(String needTime);

	/**
	 * Employmentneed检索
	 * 
	 * @return
	 */
	public List<Employmentneed> getEmploymentneeds(Map<String, Object> params);

	/**
	 * 追加Employmentneed
	 * 
	 * @param employmentneed
	 */
	public void insertEmploymentneed(Employmentneed employmentneed);

	/**
	 * 更新Employmentneed
	 * 
	 * @param employmentneed
	 */
	public void updateEmploymentneed(Employmentneed employmentneed);

	/**
	 * 通过id得到employmentneed
	 * 
	 * @param id
	 * @return
	 */
	public Employmentneed getEmploymentneedById(int id);

	/**
	 * 删除Employmentneed
	 * 
	 * @param employmentneed
	 */
	public void deleteEmploymentneed(int id);

	// /**
	// * 验证employmentneedName是否重复
	// * (重复返回:false)
	// * flag: 1 追加时验证
	// * flag: 2 更新时验证
	// */
	// public boolean checkEmploymentneedName(Employmentneed
	// paramEmploymentneed, int flag);

}
